package Observers;

/**
 * <p>Title main</p>
 *
 * @author YiMing Liu
 * @date 2018/6/14 16:41
 * <p>Description:</p>
 */
public class main {
    public static void main(String[] args) {
        NumberGenerator numberGenerator = new RandomNumberGenerator();
        Observer graphObserver = new GraphObserver();
        Observer digitObserver = new DigitObserver();
        numberGenerator.addObserver(graphObserver);
        numberGenerator.addObserver(digitObserver);
        numberGenerator.execute();
    }
}
